package com.rxyl.love.petdoctor.util;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.rxyl.love.petdoctor.app.MyApplication;

/**
 * Created by Administrator on 2016/1/20 0020.
 */
public class DataClearUtils {

    //清除本应用内部缓存(/data/data/com.xxx.xxx/cache) * * @param context */
    public static void cleadInternalCache(){
        MyApplication.getApp().getImageLoader().clearMemoryCache();
        MyApplication.getApp().getImageLoader().clearDiskCache();

        Fresco.getImagePipeline().clearMemoryCaches();
        Fresco.getImagePipeline().clearDiskCaches();
        Fresco.getImagePipeline().clearCaches();
    }
}
